package com.ucar.train.service.xumingzhi;


import com.ucar.train.service.xumingzhi.Process.ChangeFilterElement;
import com.ucar.train.service.xumingzhi.Process.PlusTirePressure;
import com.ucar.train.service.xumingzhi.Process.RefuelingOil;
import com.ucar.train.service.xumingzhi.ResultUtil.CarStateEnum;

/**
 * Desciption:
 *
 * @Author: XuMingZhi.
 * Creation time: 2019/8/22 8:36:00.
 * © Copyright 2013-2019, UCar.
 */
public class Store {
    public static void main(String[] args)  {
        ChangeFilterElement changeFilterElement = new ChangeFilterElement();
        PlusTirePressure plusTirePressure = new PlusTirePressure();
        RefuelingOil refuelingOil = new RefuelingOil();
        Car car = new Car();
        car.addProcess(changeFilterElement);
        car.addProcess(plusTirePressure);
        car.addProcess(refuelingOil);
        car.setCarStateEnum(CarStateEnum.MAINTAINING);//设置状态 保养中
        System.out.println(car.maintenance());


    }
}
